package com.video.tiktokdownloader.nowatermark

import android.content.Context
import androidx.fragment.app.Fragment

/**
 * @author Afra55
 * @date 2020/6/26
 * A smile is the best business card.
 */
open class BaseFragment : Fragment() {
    lateinit var myActivity: BaseActivity

    override fun onAttach(context: Context) {
        super.onAttach(context)
        if (context is BaseActivity) {
            myActivity = context
        } else {
            throw RuntimeException("WTF")
        }
    }
}